Skip to content

Add offset to spectral transformations to enable shifted slits#875

Draft
oczoske wants to merge 2 commits intomainfrom
oc/mcd_spec
Draft

Add offset to spectral transformations to enable shifted slits#875
oczoske wants to merge 2 commits intomainfrom
oc/mcd_spec

Conversation

@oczoske
Copy link
Collaborator

@oczoske oczoske commented Feb 3, 2026

This is a bit of a hack to enable simulations of offset slits in MICADO. The offset is in the dispersion direction and observations in the nominal and offset slits are meant to fill in missing data due to the gaps in the detector array. A proper implementation would use separate trace files computed for both slit positions. Here, offsets are determined from the CRVALiD in the FOV header and added to the x and y arrays from which the transformations are computed. The CRVALiD values are zero for nominal slits and non-zero for shifted slits. This works for MICADO, but it needs to be tested that it doesn't break METIS and other spectrographs.

Related to AstarVienna/irdb#308

@oczoske oczoske self-assigned this Feb 3, 2026
@oczoske oczoske added enhancement PR adding or improving a feature (use "Feature" type for issues (requests), not this label) effects Related to a ScopeSim effect spectroscopy Related to spectroscopic modes labels Feb 3, 2026
@oczoske oczoske moved this to 🏗 In progress in ScopeSim-development Feb 3, 2026
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.85%. Comparing base (327b28c) to head (95aaa7a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #875      +/-   ##
==========================================
+ Coverage   74.83%   74.85%   +0.02%     
==========================================
  Files          69       69              
  Lines        8868     8876       +8     
==========================================
+ Hits         6636     6644       +8     
  Misses       2232     2232              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effects Related to a ScopeSim effect enhancement PR adding or improving a feature (use "Feature" type for issues (requests), not this label) spectroscopy Related to spectroscopic modes

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

1 participant